<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>

</body>

</html>
<script>
  // 自动获取今天是周几，判断一下，告诉用户该干嘛
  var date = new Date();
  var d = date.getDay(); // 0-6 之间的数字
  switch (d) {
    case 1:
      console.log('今天周一，去上班');
      break;
    case 2:
      console.log('今天周二，去拉投资');
      break;
    case 3:
      console.log('今天周三，去开会');
      break;
    case 4:
      console.log('今天周四，去参展');
      break;
    case 5:
      console.log('今天周五，去参加同学婚礼');
      break;
    case 6:
    case 0:
      console.log('今天周末，在家休息');
      break;
  }
</script>